package com.lam.mall.mapper;
import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lam.mall.entity.ProdTagRl;

/**
 * 商品分组Mapper接口
 * 
 * @author admin
 * @date 2023-04-22
 */
public interface ProdTagRlMapper extends BaseMapper<ProdTagRl>{

	@Select("SELECT prod_tag_id FROM mall_prod_tag_rl WHERE prod_id = #{prodId}")
	List<String> listTagIdByProdId(@Param("prodId") String prodId);
	
	int insertBatch(@Param("shopId")String shopId, @Param("prodId") String prodId, @Param("tagIdList") List<String> tagIdList);


}
